const fs = require('fs')
try{
    let res = fs.readFileSync('./data.json','utf-8')
    let obj  = JSON.parse(res)
    console.log(obj.name,obj.age);
}catch(err){
    console.log('有错误',err);
}
